package com.hellospboot.controoler;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author GuoChunbo
 * @create 2021-02-19 11:31
 * @Description: 类的描述
 */
@Controller
public class HelloController {

    @GetMapping("login")
    public String login(Model model){
        model.addAttribute("name","admin");
        return "login";
    }

    @GetMapping("login1")
    public String login1(Model model){
        model.addAttribute("name","admin");
        return "login";
    }
}
